package city.spring.modules.health.repository;

import city.spring.modules.health.entity.PhysicalExaminationEntity;
import city.spring.modules.health.vo.PhysicalExaminationVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：体检记录
 *
 * @author 谢金婷
 * @date 2020-08-04 14:15:52
 */
@Repository
public interface PhysicalExaminationRepository extends BaseMapper<PhysicalExaminationEntity> {
    PhysicalExaminationEntity getById(String id);

    IPage<PhysicalExaminationVO> listPage(Page<? extends PhysicalExaminationEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends PhysicalExaminationEntity> wrapper);
}